<script setup>
import { inject } from 'vue'

const themeColor = inject('theme-color')
const count = inject('count')
const changeCount = inject('changeCount')

const Fn = () => {
    changeCount(100)
}

</script>

<template>
    <div>
        底层组件 - {{ themeColor }} - {{ count }}
        <button @click="Fn">修改数据</button>
    </div>
</template>